//<![CDATA[

var verification_code_object = new Object;
    verification_code_object.verification_code = ["验证码0.png","验证码1.png","验证码2.png","验证码3.png","验证码4.png"];
    verification_code_object.numberValue = ["7241","1821","5561","6805","0285"];
var imgSrc = "img/验证码/";
var verification_number;

function onclickRegistered(onclike){
    
     var registered = document.getElementById("registered");
     if(registered.style.color != "blue")
     {
     
     var login = document.getElementById("login");
     var text_p = document.getElementById("text_p");
     var input0 = document.getElementById("input0");
     var input1 = document.getElementById("input1");
     var input2 = document.getElementById("input2");
     var input3 = document.getElementById("input3");
     var verification_code = document.getElementById("verification_code");
     registered.style.color = "blue";
     login.style.color = "black";
     input3.firstChild.nodeValue = "注册";
     text_p.firstChild.nodeValue = "点击［注册］即代表你同意";
     text_p.lastChild.firstChild.nodeValue = "《小可爱协议》";
     input0.setAttribute("placeholder","名字");
     input1.setAttribute("type","tel");
     input1.setAttribute("placeholder","电话号码");
     input2.setAttribute("type","password");
     input2.setAttribute("placeholder","密码");
     
     verification_code.setAttribute("class","class1");
     verification_code.removeAttribute("src");
     }
}

function onclickLogin(onclike){
    
    var login = document.getElementById("login");
    if(login.style.color != "blue")
    {

    var registered = document.getElementById("registered");
    var text_p = document.getElementById("text_p");
    var input0 = document.getElementById("input0");
    var input1 = document.getElementById("input1");
    var input2 = document.getElementById("input2");
    var input3 = document.getElementById("input3");
    var verification_code = document.getElementById("verification_code");
    registered.style.color = "black";
    login.style.color = "blue";
    input3.lastChild.nodeValue = "登录";
    text_p.firstChild.nodeValue = "忘记密码问↘小站长要或再注册一个吧(>^ω^<)喵";
    text_p.lastChild.firstChild.nodeValue = " ";
    input0.setAttribute("placeholder","账号名/电话号码");
    input1.setAttribute("type","password");
    input1.setAttribute("placeholder","密码");
    input2.setAttribute("type","tel");
    input2.setAttribute("placeholder","验证码");
    var random = Math.floor(Math.random()*5);
    verification_code.setAttribute("class","verification_code_class");
        verification_number = verification_code_object.numberValue[random];
    verification_code.setAttribute("src",imgSrc + verification_code_object.verification_code[random]);
    
    }
}

function onclike_verification_code(){

   var verification_code = document.getElementById("verification_code");
   var random = Math.floor(Math.random()*5);
    verification_number = verification_code_object.numberValue[random];
    verification_code.setAttribute("src",imgSrc + verification_code_object.verification_code[random]);


}






//]]>
